package com.yifeng.repo.base.utils.action;

import com.yifeng.repo.base.constant.BaseConstant;

/**
 * Created by daibing on 2023/8/25.
 */
public interface BizCacheAction {

    /**
     * redis key前缀
     */
    default String redisKeyPrefix() {
        return BaseConstant.EMPTY;
    }

    /**
     * 获取缓存内容
     */
    String get(String key);

    /**
     * 写入缓存内容
     */
    void put(String key, long seconds, String value);
}
